#ifndef __INCLUDED_USERDATA_HPP
#define __INCLUDED_USERDATA_HPP

#include <vector>

template <typename T>
class t_UserData
{
protected:
	std::vector<T> m_Data;
public:
	t_UserData() {m_Data.resize(32, T());}
	T * operator[](int user_id)
	{
		user_id--;
		if(user_id < 0 || user_id > 31)
			return nullptr;
		return &m_Data[user_id];
	}
};

#endif